package hotel.dao;

import org.nutz.dao.entity.annotation.*;

@Table("room_rent")
public class RoomRentDao {
	@Name
	@Prev( @SQL("select generate_preOrderNo('KF');") )
	private String preOrderId;		// 开房单号
	@Column
	private int customerNo;			// 客户编号
	@Column
	private String roomNo;			// 房间编号
	@Column
	private String startTime;		// 入住时间
	@Column
	private int duration;			// 入住时长
	@Column
	private String leaveTime;		// 退房时间
	@Column
	private double deposit;		// 预收金额
	@Column
	private String createTime;		// 创建时间
	@Column
	private boolean valid;			// 有效标记
	@Column
	private String operateUser1;	// 开房操作用户
	@Column
	private String operateUser2;	// 退房操作用户
	@Column
	private String comment;			// 备注信息
	
	public String getPreOrderId() {
		return preOrderId;
	}
	public void setPreOrderId(String preOrderId) {
		this.preOrderId = preOrderId;
	}
	public int getCustomerNo() {
		return customerNo;
	}
	public void setCustomerNo(int customerNo) {
		this.customerNo = customerNo;
	}
	public String getRoomNo() {
		return roomNo;
	}
	public void setRoomNo(String roomNo) {
		this.roomNo = roomNo;
	}
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public int getDuration() {
		return duration;
	}
	public void setDuration(int duration) {
		this.duration = duration;
	}
	public String getLeaveTime() {
		return leaveTime;
	}
	public void setLeaveTime(String leaveTime) {
		this.leaveTime = leaveTime;
	}
	public double getDeposit() {
		return deposit;
	}
	public void setDeposit(double deposit) {
		this.deposit = deposit;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public boolean isValid() {
		return valid;
	}
	public void setValid(boolean valid) {
		this.valid = valid;
	}
	public String getOperateUser1() {
		return operateUser1;
	}
	public void setOperateUser1(String operateUser1) {
		this.operateUser1 = operateUser1;
	}
	public String getOperateUser2() {
		return operateUser2;
	}
	public void setOperateUser2(String operateUser2) {
		this.operateUser2 = operateUser2;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
}
